<form id="edit-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Name')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-name" class="form-control" name="row[name]" type="text" value="{$row.name|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Type')}:</label>
        <div class="col-xs-12 col-sm-8">
            {:build_radios("row[type]",$typeList,$row['type'])}
            <span style="color: red;">Ps:引导任务为固定项,修改奖励及奖励类型即可</span>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Location')}:</label>
        <div class="col-xs-12 col-sm-8">
            {:build_radios("row[location]",$locationList,$row['location'])}
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Standard_limit')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-standard_limit" data-rule="required" class="form-control" name="row[standard_limit]"
                   type="number" value="{$row.standard_limit|htmlentities}">
            <span style="color: red;">Ps:邀请和充值为数量限制.<br>
                对局为排名,0是失败或无需排名,1胜利或排名大于等于达标量</span>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Award_type')}:</label>
        <div class="col-xs-12 col-sm-8">
            {:build_radios("row[award_type]",$awardTypeList,$row.award_type)}
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Amount')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-amount" data-rule="required" class="form-control" step="0.01" name="row[amount]" type="number"
                   value="{$row.amount|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Date_limit')}:</label>
        <div class="col-xs-12 col-sm-8">
            {:build_radios("row[date_limit]",$dateLimitList,$row['date_limit'])}

        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Frequency_limit')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-frequency_limit" data-rule="required" class="form-control" name="row[frequency_limit]"
                   type="number" value="{$row.frequency_limit|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Switch')}:</label>
        <div class="col-xs-12 col-sm-8">

            <input id="c-switch" name="row[switch]" type="hidden" value="{$row.switch}">
            <a href="javascript:;" data-toggle="switcher" class="btn-switcher" data-input-id="c-switch" data-yes="1"
               data-no="0">
                <i class="fa fa-toggle-on text-success {eq name=" $row.switch" value="0"}fa-flip-horizontal
                text-gray{/eq} fa-2x"></i>
            </a>
        </div>
    </div>
    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-primary btn-embossed disabled">{:__('OK')}</button>
        </div>
    </div>
</form>
